package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-13
*/
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PersonViolationRegulationsRecordBean对象", description="人员违章记录")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "person_violation_regulations_record", resultMap = "BaseResultMap")
public class PersonViolationRegulationsRecordBean extends Model<PersonViolationRegulationsRecordBean> {

    private static final long serialVersionUID = -3200970270253475473L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "obj_id")
    private String objId;

    @ApiModelProperty(value = "人员ID")
    private String personObjId;

    @ApiModelProperty(value = "违章时间")
    private Date time;

    @ApiModelProperty(value = "违章行为")
    private String behavior;

    @ApiModelProperty(value = "违章行为")
    private String fromWarnObjId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;
}
